// Loads the Facebook module, which can be referenced by Alloy.Globals.Facebook
Alloy.Globals.Facebook = require('facebook');

var ip = "http://localhost:8080";
//Para testar com genymotion é necessário definir o ip do host
//ip = "http://192.168.1.4:8080";

function isRealValue(obj){
 return obj && obj !== "null" && obj!== "undefined";
}

if (OS_IOS || OS_ANDROID) {
	Alloy.Globals.top = 0;
	Alloy.Globals.tableTop = '50dp';

	try {
		// check for iOS7
		if (OS_IOS && parseInt(Titanium.Platform.version.split(".")[0], 10) >= 7) {
			Alloy.Globals.top = '20dp';
			Alloy.Globals.tableTop = '70dp';
		}
	} catch(e) {
		// catch and ignore
	}
}